/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2025-02-06 18:38:12
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-02-25 18:47:35
 * @FilePath: /vue-element-admin/src/api/accountManagement.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */


import request from '@/utils/request'


/**
 * @description  财务 统计从记录起始年份到当前年份每年的营业额
 * @param {Number} param id {Number} 物流公司id
 */
export function financeStatisticsYearlyApi(data) {
  return request({
    url: '/retailFinanceTrade/statisticsYearly',
    method: 'get',
    params: data, 
  });
}



/**
 * @description  财务 统计30天内营业额
 * @param {Number} param id {Number} 物流公司id
 */
export function financeStatistics30DaysApi(data) {
  return request({
    url: '/retailFinanceTrade/statistics30Days',
    method: 'get',
    params: data, 
  });
}

/**
 * @description  财务 统计12个月内营业额
 * @param {Number} param id {Number} 物流公司id
 */
export function financeStatistics12MonthsApi(data) {
  return request({
    url: '/retailFinanceTrade/statistics12Months',
    method: 'get',
    params: data, 
  });
}


/**
 * @description  统计从记录起始年份到当前年份每年的营业额
 * @param {Number} param id {Number} 物流公司id
 */
export function statisticsYearlyApi(data) {
  return request({
    url: '/retailFinanceTrade/statisticsYearly',
    method: 'get',
    params: data, 
  });
}



/**
 * @description  统计30天内营业额
 * @param {Number} param id {Number} 物流公司id
 */
export function statistics30DaysApi(data) {
  return request({
    url: '/retailFinanceTrade/statistics30Days',
    method: 'get',
    params: data, 
  });
}



/**
 * @description  统计12个月内营业额
 * @param {Number} param id {Number} 物流公司id
 */
export function statistics12MonthsApi(data) {
  return request({
    url: '/retailFinanceTrade/statistics12Months',
    method: 'get',
    params: data, 
  });
}


/**
 * @description  低值损耗统计
 * @param {Number} param id {Number} 物流公司id
 */
export function lowValueLossApi(data) {
  return request({
    url: '/retailStock/lowValueLoss',
    method: 'get',
    params: data, 
  });
}


/**
 * @description  店员管理列表
 * @param {Number} param id {Number} 物流公司id
 */
export function countCustomerTodayApi(data) {
    return request({
      url: '/retailCustomer/countCustomerToday',
      method: 'get',
      params: data, 
    });
  }

  /**
 * @description  统计30天内每天订单量
 * @param {Number} param id {Number} 物流公司id
 */
export function countOrdersIn30DaysApi(data) {
  return request({
    url: '/retailCustomer/countOrdersIn30Days',
    method: 'get',
    params: data, 
  });
}

  /**
 * @description  统计12个月内每月订单量
 * @param {Number} param id {Number} 物流公司id
 */
  export function countOrdersIn12MonthsApi(data) {
    return request({
      url: '/retailCustomer/countOrdersIn12Months',
      method: 'get',
      params: data, 
    });
  }

  /**
 * @description  统计客户渠道
 * @param {Number} param id {Number} 物流公司id
 */
  export function countCustomerChannelApi(data) {
    return request({
      url: '/retailCustomer/countCustomerChannel',
      method: 'get',
      params: data, 
    });
  }

  



  /**
 * @description  统计
 * @param {Number} param id {Number} 物流公司id
 */
  export function statisticsApi(data) {
    return request({
      url: '/retailCustomer/statistics',
      method: 'get',
      params: data, 
    });
  }